﻿using GetHbaseDataTests.Helpers;
using Sustainalytics.ClientDW.Synchronization.SyncHbaseData;
using Sustainalytics.ClientDW.Synchronization.SyncHbaseData.CorporateDetailsLogic;
using Xunit;
using Xunit.Abstractions;

namespace GetHbaseDataTests.CorporateDataTests
{
    public class CorporateDetailsHbaseQueryTests : BaseSyncHbaseTests
    {
        private readonly CorporateDatabaseQuery _sut;

        public CorporateDetailsHbaseQueryTests(ITestOutputHelper output) : base(output)
        {
            _sut = SimpleInjectorContainer.GetInstance<CorporateDatabaseQuery>();
        }

        [Fact]
        public void Execute()
        {
            var corporateDetails = _sut.Get(CorporateDetailsDataBaseQuery.Get);
            Assert.NotEmpty(corporateDetails);
        }
    }
}
